<?php
/**
 * Pert PHP Library
 * SQLGenerator
 * Condition Class
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pert\PostgreSQLGenerator;

require_once __DIR__ . '/aCondition.php';

class Condition extends aCondition
{
	protected $input;

	public function __Construct($column,
			Input $input)
	{
		parent::__Construct($column);

		$this->input = $input;
	}

	public function SQL($table)
	{
		return '"' . $table . '"."' . $this->column . '" = ' . $this->input->SQL();
	}
}
